﻿using DevExpress.XtraSplashScreen;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace DevFramework.Util
{
    public class ThreadWaitOrSplash
    {
        static Thread th;
        public static void StartSplashThread()
        {
            th = new Thread(StartSplash);
            th.IsBackground = true;
            th.Start();
        }
        public static void StopSplashThread()
        {
            SplashScreenManager.CloseForm();
        }
        private static void StartSplash()
        {
            SplashScreenManager.ShowForm(typeof(frmSplashScreen));
        }
    }
}
